package com.yiren.manager.form.desk;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yiren.core.form.GenericForm;
import com.yiren.manager.utils.CustomJsonDateDeserializer;
import com.yiren.manager.utils.CustomSimpleDateDeserializer;

public class YrDonateForm extends GenericForm{

	private static final long serialVersionUID = -521479633935908443L;

	private String donateId;

	private String contactName;

	private String contactPhoneNumber;

	private String createId;

 	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") 
	private Date createTime;

 	@DateTimeFormat(pattern="yyyy-MM-dd")  
	private Date donateDate;

	private String donateDecr;

	private String donateName;

	private String donateTo;

	private String updateId;

 	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") 
	private Date updateTime;

	public String getDonateId() {
		return donateId;
	}

	public void setDonateId(String donateId) {
		this.donateId = donateId;
	}

	public String getContactName() {
		return contactName;
	}

	public void setContactName(String contactName) {
		this.contactName = contactName;
	}

	public String getContactPhoneNumber() {
		return contactPhoneNumber;
	}

	public void setContactPhoneNumber(String contactPhoneNumber) {
		this.contactPhoneNumber = contactPhoneNumber;
	}

	public String getCreateId() {
		return createId;
	}

	public void setCreateId(String createId) {
		this.createId = createId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	@JsonDeserialize(using=CustomJsonDateDeserializer.class)
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getDonateDate() {
		return donateDate;
	}

	@JsonDeserialize(using=CustomSimpleDateDeserializer.class)
	public void setDonateDate(Date donateDate) {
		this.donateDate = donateDate;
	}

	public String getDonateDecr() {
		return donateDecr;
	}

	public void setDonateDecr(String donateDecr) {
		this.donateDecr = donateDecr;
	}

	public String getDonateName() {
		return donateName;
	}

	public void setDonateName(String donateName) {
		this.donateName = donateName;
	}

	public String getDonateTo() {
		return donateTo;
	}

	public void setDonateTo(String donateTo) {
		this.donateTo = donateTo;
	}

	public String getUpdateId() {
		return updateId;
	}

	public void setUpdateId(String updateId) {
		this.updateId = updateId;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	@JsonDeserialize(using=CustomJsonDateDeserializer.class)
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}
